package com.codeZ.FactoryPattern.abstractFactory.client;

import com.codeZ.FactoryPattern.abstractFactory.factory.AppliancesFactory;
import com.codeZ.FactoryPattern.abstractFactory.product.AbstractFreezer;
import com.codeZ.FactoryPattern.abstractFactory.product.AbstractTV;
import lombok.Data;

/**
 * 客户端
 *
 * @author codeZhang
 * @Date 2024/8/1 17:55
 */
@Data
public class Client {

    private AbstractTV tv;

    private AbstractFreezer freezer;

    public Client(AppliancesFactory factory){
        this.tv = factory.createTV();
        this.freezer = factory.createFreezer();
    }

}
